<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>账号注销</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <style media="screen">
        .wrap {
            width: 100%;
            padding: 20px 15px;
            box-sizing: border-box;
            overflow: hidden;
        }

        .mobile {
            width: 100%;
            height: 15px;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #333333;
            line-height: 15px;
        }

        .wrap .tip {
            width: 100%;
            height: 14px;
            font-size: 13px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #333333;
            line-height: 14px;
            margin-top: 13.5px;
        }

        .tip_list {
            width: 100%;
            padding: 15px 0;
            padding-left: 31px;
            box-sizing: border-box;
            background: #FFFFFF;
            border-radius: 10px;
            margin-top: 10px;
        }

        .tip_list div {
            width: 100%;
            height: 14px;
            font-size: 13px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #333333;
            line-height: 14px;
            margin-top: 10px;
        }

        .tip_list div:first-child {
            margin-top: 0;
        }

        .btn {
            width: 100%;
            display: flex;
            margin-top: 20px;
            justify-content: space-between;
        }

        .btn button {
            width: 160px;
            height: 40px;
            border-radius: 20px;
            border: none;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #FFFFFF;
            line-height: 40px;
            text-align: center;
        }

        .btn button.btn_r {
            background: linear-gradient(-81deg, #553BF7, #AD61FD);
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="wrap">
            <div class="mobile">请注意，将{{account}}账户注销后</div>
            <div class="tip">以下信息将被清空且无法找回</div>
            <div class="tip_list">
                <div>1.账户、身份信息</div>
                <div>2.收藏、浏览记录</div>
                <div>3.个人隐私信息</div>
                <div>4.账户内预估可获得和已获得的收益</div>
            </div>
            <div class="tip">请确保所有交易已完结且无纠纷，账户注销后无法再登陆</div>
            <div class="tip" style="color:#D11135;margin-top:5px;">账户注销后，历史交易产生的收益等权益视为自动放弃</div>

            <div class="btn">
                <button type="button" name="button" class="btn_l" @click='cancel_verify()'>注销账号</button>
                <button type="button" name="button" class="btn_r">暂不注销</button>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.js"></script>
<script type="text/javascript" src="../../script/cling.js"></script>
<script type="text/javascript">
    apiready = function() {
       vm.account = cl.userInfo.account;
    }
    var vm = new Vue({
        el: '#app',
        data: {
           account:''
        },
        methods: {
            cancel_verify: function() {
                api.setPrefs({
                    key: 'isOpenlayer',
                    value: '1'
                });
                api.openFrame({
                    name: 'cancel_verify_frame',
                    url: './cancel_verify_frame.html',
                    rect: {
                        marginTop: 0,
                        marginBottom: api.safeArea.bottom, // main页面距离win底部的高度
                        w: 'auto'
                    },
                    bounces: false,
                    bgColor: "rgba(0, 0, 0, 0.2)",
                    vScrollBarEnabled: true,
                    hScrollBarEnabled: true,
                    animation: {
                        type: 'push',
                        subType: 'from_bottom',
                        duration: 300
                    }
                });
                // cl.openFrame({
                //     name: './cancel_verify_frame',
                //     bgColor: 'rgba(0,0,0,0.4)',
                //     animation: {
                //         type: 'movein',
                //         subType: 'from_right',
                //         duration: 300
                //     }
                // });
            }
        }
    });
</script>

</html>
